const initState = {
  city: "武汉"
}


const city = (state = initState, action) => {
  switch (action.type) {
    case "SET_CITY":
      let currentState = Object.assign({}, state);
      currentState.city = action.city
      return currentState;
    case "INIT_CITY":
      return state;
    default:
      return state;
  }
}

export default city